#include "main.h"

#define BD_COM_DATA_VALID_LEN (26)

typedef struct _spi_cfg_info
{
    uint8_t     dat_head;
    uint8_t     dat_cmd_group;
    uint8_t     dat_len_h;
    uint8_t     dat_len_l;
    uint8_t     dat_valid[BD_COM_DATA_VALID_LEN]; //include dat_cmd_id + valid data
    uint8_t     dat_crc_h;
    uint8_t     dat_crc_l;
}aal_bd_com_data_struct;

int main()
{
    // pointer_demo();
    // vabritype_lens();
    // dynamic_array();
    // string_demo();
    // array_demo();
    // CalcArea_demo();

    // cout << "Enter radius: " << endl;
    // double Radius = 0;
    // cin >> Radius;

    // double AreaFetched = 0;
    // Area(Radius,AreaFetched);
    // cout << "The area is: " << AreaFetched << endl;

    // Lambda_test();
    // new_del_demo();

    // basic_class_demo();
    // constructor_class_demo(); 
    // constructor_class_demo2();
    // constructor_class_demo3();
    // constructor_copy_demo();
    // constructor_single_sample_class_demo();
    // sizeof_class_demo();
    // friend_class_demo();

    basic_class_inherit_derive_demo();
    destructor_derive_class_demo();

    // cout << "bd_com_data lens(bytes): " << sizeof(aal_bd_com_data_struct) << endl;

    this_pointer_demo();

    cout << "hello world,auth by eason" << endl;
    return 0;
}

